package com.ruoyi.app.domain.realtimepositioning;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.domain.request.PageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 里程统计查询参数
 * @author wp
 * @email 163@qq.com
 * @date 2023-03-16 11:43:49
 */
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Data
public class DeviceMileageParam extends PageParam {

    @ApiModelProperty("公司ID集合")
    private List<Long> companyIds;
    @ApiModelProperty("监管类型")
    private List<Integer> objTypes;
    @ApiModelProperty("设备号或设备名称")
    private String text;

    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @NotNull
    private String startTime;
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @NotNull
    private String endTime;


}

